<?php
/**
 *
 * @notes:
 * @author:     Jokenzhang
 * @time:       2020/11/25  15:16
 * @version:    V20201125.1.1
 *
 */

namespace App\ObServer;


use App\Models\User;
use Illuminate\Support\Str;

class UserObserver
{
    public function creating(User $user){
        $user -> email_token = Str::random(10);
    }
}
